//
//  UIView+JCategory.h
//  jhf
//
//  Created by 计海峰 on 2017/11/23 14:05:37.
//  Copyright © 2017年 计海峰. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (JCategory)

/**
 添加多个子视图

 @param array  所有view
 */
- (void)jAddSubViews:(NSArray <UIView *>*)array;

//不用再蛋疼的写某view.frame=CGRectMake(x,y,z,o)了。
- (CGFloat)j_left;
- (CGFloat)j_right;
- (CGSize)j_size;
- (CGFloat)j_top;
- (CGFloat)j_bottom;
- (CGFloat)j_width;
- (CGFloat)j_height;
- (CGFloat)j_centerX;
- (CGFloat)j_centerY;
- (CGFloat)j_maxX;
- (CGFloat)j_maxY;

- (void)setJ_top:(CGFloat)top;
- (void)setJ_left:(CGFloat)left;
- (void)setJ_bottom:(CGFloat)bottom;
- (void)setJ_right:(CGFloat)right;

- (void)setJ_width:(CGFloat)width;
- (void)setJ_height:(CGFloat)height;

- (void)setJ_size:(CGSize)size;
- (void)setJ_origin:(CGPoint)point;

- (void)setJ_addTop:(CGFloat)top;
- (void)setJ_addLeft:(CGFloat)left;

- (void)setJ_centerX:(CGFloat)centerX;
- (void)setJ_centerY:(CGFloat)centerY;

@end
